package com.pachong.frameworkdemo.module3;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.pachong.android.baseuicomponent.fragment.BaseFragment;
import com.pachong.frameworkdemo.R;
import com.pachong.frameworkdemo.demo.baseui.BaseUIDemoActivity;
import com.pachong.frameworkdemo.demo.dialog.DialogDemoActivity;

import butterknife.OnClick;

@SuppressLint("ValidFragment")
public class Main3Fragment extends BaseFragment {

	public Main3Fragment() {
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View view = super.onCreateView(inflater, container, savedInstanceState);
		showToolbar();
		setTitle("HEH");
		return view;
	}
	
	@Override
	public void onSaveInstanceState(Bundle outState) {
		super.onSaveInstanceState(outState);
//		outState.putInt("mColorRes", mColorRes);
	}

	@Override
	public View createDataView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		return inflater.inflate(R.layout.fragment_main3, null);
	}


	@OnClick(R.id.btnDialogDemo)
	void onBntDialogDemoClicked() {
		Intent intent = new Intent(getContext(), DialogDemoActivity.class);
		startActivity(intent);
	}

	@OnClick(R.id.btnBaseUI)
	void onBtnBaseUI() {
		Intent intent = new Intent(getContext(), BaseUIDemoActivity.class);
		startActivity(intent);
	}

}
